/*
 * action.js action baseClass
 */

 (function(my){
 function baseActionClass(){};
 baseActionClass.prototype.init = function(initParam){
 	for(var i in this.validMember)
 	{
 		var k = this.validMember[i];
 		if(initParam.hasOwnProperty(k)) {
 			console.log(k);
 			console.log(initParam[k]);
 			this[k] = initParam[k];
 		}
 	}
 	var n = this.constructor.name;
 	console.log(n);
 	console.log(initParam);
 }
 baseActionClass.prototype.verify = function(){
 	console.log(this.constructor.name + ' call verify');
 	for(var i in this.validMember)
 	{
 		if(!this.hasOwnProperty(this.validMember[i])) throw('miss property:' + this.validMember[i]);
 	}
 	return true;
 }
 my.ActionClass = baseActionClass;
 })(this)